package vehicles;

public class MutablePoint implements Point {
	public double x, y;
	
	public MutablePoint(double x, double y) {
		this.x = x; 
		this.y = y;
	}
	
	public MutablePoint(Point p) {
		this(p.getX(), p.getY());
	}

	@Override
	public double getX() {
		return x;
	}

	@Override
	public double getY() {
		return y;
	}
}
